<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:a="http://richfaces.org/a4j">
	<h:panelGrid styleClass="booking-tax-info"
		columnClasses="booking-tax-info-col1, booking-tax-info-col2"
		columns="2">
		<h:graphicImage value="/img/logo.png" />
		<h:outputText value="#{bookingmsgs['booking.selectFlight.message']}" />
	</h:panelGrid>

	<rich:tabPanel switchType="client" id="going">
		<c:forEach items="#{atsmUtils.toList(ticketBooking.departTicketGroupByDate.keySet())}" var="key">
			<rich:tab label="#{key}"
				style="font-size: 13px;">
				<ui:decorate template="dataTable.xhtml">
					<ui:param name="title" value="#{bookingmsgs['booking.selectFlight.departFlights']}" />
					<ui:param name="data" value="#{ticketBooking.departTicketGroupByDate[key]}" />
					<ui:param name="functionName" value="departCallCheck" />
					<ui:param name="rdId" value="departRd" />
				</ui:decorate>
			</rich:tab>
		</c:forEach>
	</rich:tabPanel>
	<br/>
	<rich:tabPanel switchType="client" id="return" rendered="#{ticketBooking.isRoundTrip()}">
		<c:forEach items="#{atsmUtils.toList(ticketBooking.returnTicketGroupByDate.keySet())}" var="key">
			<rich:tab label="#{key}"
				style="font-size: 13px;">
				<ui:decorate template="dataTable.xhtml">
					<ui:param name="title" value="#{bookingmsgs['booking.selectFlight.returnFlights']}" />
					<ui:param name="data" value="#{ticketBooking.returnTicketGroupByDate[key]}" />
					<ui:param name="functionName" value="returnCallCheck" />
					<ui:param name="rdId" value="returnRd" />
				</ui:decorate>
			</rich:tab>
		</c:forEach>
	</rich:tabPanel>
</ui:composition>